﻿using System;
using Util.Domain.Trees;

namespace Util.Domain.Tests.Samples; 

/// <summary>
/// 角色
/// </summary>
public class Role : TreeEntityBase<Role, Guid, Guid?> {
    /// <summary>
    /// 初始化角色
    /// </summary>
    public Role()
        : this( Guid.Empty, "", 0 ) {
    }

    /// <summary>
    /// 初始化角色
    /// </summary>
    /// <param name="id">角色标识</param>
    /// <param name="path">路径</param>
    /// <param name="level">级数</param>
    public Role( Guid id, string path, int level )
        : base( id, path, level ) {
    }
}

/// <summary>
/// 角色仓储
/// </summary>
public interface IRoleRepository : ITreeRepository<Role> {
}